﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using Common;

namespace ITD_VAPCF.NganQuy.GUI
{
    public partial class frmChotQuyTienMat : DevComponents.DotNetBar.Office2007Form
    {
        public frmChotQuyTienMat()
        {
            InitializeComponent();
        }

        private void btnSearchKH_Click(object sender, EventArgs e)
        {
            SqlConnection myConn = new SqlConnection(GlobalVar.g_strConnectionMsSql);

            SqlCommand myComm = new SqlCommand("sp_CHOTQUYTIENMAT", myConn);
            myComm.CommandType = CommandType.StoredProcedure;
            myComm.Parameters.Add("@NgayChot", SqlDbType.DateTime).Value = txt_Tungay.Value;
            myComm.Parameters.Add("@NgayChot", SqlDbType.DateTime).Value = txt_Tungay.Value;
            myComm.Parameters.Add("@ChiNhanhID", SqlDbType.VarChar).Value = "%";
            myConn.Open();
            myComm.ExecuteNonQuery();
            myConn.Close();
        }
    }
}
